This is why its not repeating properly


if (a == b || b ==c || b ==c)
{ return false; }