Updated player quit method to add NullPointer catch
Updated version