getPosition function added for collision, still working with it