removed handleCollision and function; implemented typeOfThing() and moveTo() methods