Assignment 2 obstacle game