added type checking for creature and room parsing