Created RegisterDialog class
Made infinite while loop to check conditions of what dialogs/windows are open
Made infinite while loop to check conditions of what dialogs/windows are open