Implemented levels page switching and redrawing.