Refactored TicTacToe

cleaned code.