fixed chain scoring

keeps track of max chain instead of incrementing