cleaned tictactoe code