looks like the bug lies my implementation of the physics engine