changed the position array to a constant, shortened code

got rid of all redundant position array variables that were local to
functions and replaced them with a single constant

tidied up a bunch of countdown code into a single function