Stage 5 completed

created window which automatically closes, adding while loop next