functions to detect collisions; check for collisions when good guy or bad guy moves