Improve TicTacToe

Changed the way to check the tie game