Added basic physics engine, fixed edge of screen glitch