partially fixed the left direction collision detection