May challenge 2014 , Sereja and Game problem

Can anybody tell me what is the meaning of optimally in this problem ?

Optimally here means that if there is any move that can ensure ones ’ win, he’ll use that move.