fix tictactoe winner method