Assignment 4 is almost complete. bug is causing the program to stay open after all the frames are closed.