refactoring timekeeping, inspired by Mike McCauleys bcm2835 C lib
added preliminary version of Moving Wall animation, doesn't work yet