added const invalid pawn symbol 'K' and corresponding check in the constructor