Obstacles half working

added obstacles