hw8 fixed findValue bug where the function would accept previously entered values