updating ryan stuff

pseudocodish and way incomplete code, still tinkering with logic,
probably biting off too much at once and should start simple