My ribcage hurts, what should I do?

NSAIDs. Anti inflammatory meds should help, then add exercises.
Get chest xray. You probably have a sprain which should resolve on its own but if it persists would recommend cxr and rib films.