code now runs a full game. Added kingmaking, and test for end game conditions