Game engine in Scala