layercollision stuff from old playermovement