Have to be 18 to possess a firearm in WI unless hunting. Illinois too, and he has to have an FOID. So possession was illegal in WI, probably in IL. And how did a 17 year old acquire a rifle?
That will make a interesting case charge him as an adult for the murder and as a minor for the firearm.