renamed heads; added collision detection