Added convenience method for initializing Obstacles.

In the Levels class where the data for each level is stored, a convenience
method was added to easily initialize a particular obstacle for a level.

Also, some refactoring was done for code cleanliness, i.e., having a
class-wide reference to the GameWorld object so that it doesn't need to be
passed as an argument every time.