fixes for collision

fixed the collision detection quick check which caused bouncing on the
vertical axis.

tweaks for moving on the walls.
fixes for collision