fixed how occupied arrays work and added room templates