added state climbing stuff

most credit to Zack