Update tictactoe.js

toggling players belongs in the game class.