add documentation; replaced handleCollision with typeOfThing