Offloading actual collision check to outside of unitcollision function