The person confessing is not hearsay. The person he confessed to is not committing hearsay either if they tell it to the police. It does not become hearsay until its repeated in court by someone who did not originally hear it from the person confessing and/or the person repeating it is not available to be cross examined.

