fixed game breaking bug where not killing enemies crashed the game