tried to differentiate between vertical and horizontal collisions doesn't work yet