Optimization to ObstacleCourse sketch