I thought that if you're Catholic, all you had to do was go to confession, tell the priest your sins and do some hail Marys or something and you got to go to heaven. How can someone be damned if that's all they have to do?
However, one must be SORRY, and have a firm purpose of amendment - meaning - you intend NOT to repeat the sin. Doesn't mean you won't, out of weakness or whatever, but that's the idea. Without being truly sorry for that which you are confessing, you are committing a sacrilege in making a "bad confession." Therefore, confession and a few Hail Mary's is no guarantee for heaven. Those conditions must be met.