Fixed the unending loop problem. ALL IS GOOD