fixed closing pygame closing the entire program bug.