cleanup platformer example code