Deciphering the Rules of Protein Folding