added vertical collisions