Fixed level loading code. Also fixed panning.