Added test file for the World, Level, and Segment classes. Also fixed bug in Level class.