simplify platformer code