Simple collision detection added.