detect collision with snakes