Scala day 1: tic-tac-toe