changed gameFrame to exit on close