Implemented Collision detection on obstacles

prototype recognizes collision with obstacles