created countdown while loop