refactoring : piece() - for each element in board