added EndgameTest class unit test case
changed Endgame class to work out bugs in calculation of win percentage
took a minute to celebrate