SHoot the gun... If it is grouping ok than the barrel is not shot out (I'm not even sure if you can shoot out a .22 barrel). If the bullets are going everywhere than I would guess something is out of wack on your barrel.
Clean it real good first off. Pull the stock off and look and see if anything is putting pressure on the barrel. CHeck the crown and your bolt. Good luck and let us know!
-Jake