Added collision detection algorithm

when doctor collides with the player