Added a proper level exit
Added dialog boxes