constructor by a code and position
ChessItem(String code, {ChessPos? position}) : _code = code, position = position ?? ChessPos(0, 0);