Matthew Hayward was sentenced this week after police arrested him at his home