How cancer cells rewire their metabolism to survive