Fixed collision detection on the y-axis.