removed the useless flags CheckmateMatchSum and InvalidKingPosition. There should be a flag for each of the range array members. Then another test should be implemented to see if the piece threatening that member can be removed within one move.