Fixed isComplete bug. I forgot it was in a nested loop so returning true at the end and false in the loop works better.