Added changing of color to an obstacle.