Added code from sidescroller

 * TODO: remove everything related to the physics engine