wrote chess piece class