North Carolina ends season with a win