removed handleCollision() and added typeOfThing() prototype