moved keyfinder class out of the randchan function and into its own object