Created a while loop with a false to stop it running