Scala migration of adventure game engine