The sound device illustrated in the bolded text ("beats his bars") is alliteration.
Alliteration is the repetition of the same initial consonant sound in words that are close to each other in a line of text. In this case, the "b" sound is repeated in "beats" and "bars," creating a rhythmic and auditory effect.