XO game in minimax way