filled the method isCollidingWithSomething with working code