fixed the upright code and it is working now

added count down for while running and also added timing