Removed unused code from loadObstacles.

There were for-loops that whent though every point in every chart item
and those points were appended to a list that was only used in a commented-out
debug code. Those for-loops slowed down the application start-up time significantly.

Also cleaned-up LoadObstacles code a bit.