Man sentenced to up to 4 years in prison for dog fighting