Tic Tac Toe game implementation in Scala