how does a grandfather clock work