Scala game engine