Reorganized InitScene function