Adding a delay to the code

Oh my god, DKWatson, I just tried replacing the end of my code with what you advised me to and it finally works exactly as I wanted to work. I really would like to THANK YOU so much for you help. Like I mention in my earlier posts that I am still very new to Arduino programming and am still learning the basics and I wanna work my way to learn more and more about programming so I do apologize for being a bit undescriptive about my work. Once again thank you and everyone else that contributed to this forum as I really would've been still stuck in my project over a small wrong in my code.