cleaned up index to remove button class and unneccesary code in Obstacle