tictactoe in scala