wasnt using random guess func