imported hascollidedwith method
add collision detection