Source code for Part 3 - Obstacles