Tic tac toe game using minimax method