collision detection improvment

also may have improved changing directions while jumping.