Scans for a 1, if it finds it, it subtracts 1 from total and stops. Repeats for 2, 3, etc. y = number to scan for x = which die roll you are scanning