Fixed some of the end of game nil errors

Added some conditional logic to fix the errors that were occurring at the end of the game when no human players existed.