game engine written in Scala