A new all-round density functional based on spin states and SN2 barriers