refactor chess/board#set_pieces