Pseudo code for random dungeon creation