Avoid Obstacle Code

Added Obstacle class