Shape check in opponent_histogram()