added functions to tictactoegame