Fixed game getting a segmentation fault when alt-f4ing