New Hampshire ranks No. 14 out of 18 states in building code