From polymers to proteins: the effect of side chains and broken symmetry on the formation of secondary structures within a Wang-Landau approach