General updates

Fixed second magic kings problem, cut speed by way more than half, added win/loss checks (no draws), removed number_of_pieces() (never called), other minor tweaks.
Merge pull request #41 from user2509848/patch-25

General updates
Merge remote-tracking branch 'upstream/master'