Moved tictactoe code