Updated y direction collision detection