finally started on room generation and added some utility functions