Removed a NullReferenceException in GameLogic