Added Pygame GUI and changed the closing conditionals to handle both clicking the window's exit button and receiving a close command from the Server