made more changes to my while loop

made more changes to my while loop still not working properly