code: def would_move_be_promotion(self):
          
          return (self._end_loc.rank == 0 and not self.color) or \
              (self._end_loc.rank == 7 and self.color)
docs: Finds if move from current location would be a promotion