Added toggling rendering of terrain and obstacles.