removed handleCollision and added prototypes for typeOfThing() and reverse() methods