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.