Unbeatable TicTacToe in Java