fix endgame bug and add jim