optimal strategy for a game