a platformer in scala