fix bug with horizontal collisions
some changes made