Fixed find; now it stops when it finds the first.

Used a while loop instead of a for.