Properly resets the obstacles array when choosing a new map.