Added the ObstaclesFieldGen class, but it isn't right, needs some help.