He woke up with a winning strategy in mind