fixed infinite loop from by only iterating over onBoard pieces