Pong in Scala