Made castling, pawn upgrading;simpler isMated
fixed another little pawn bug