Added a mutex lock for addToRing, fixFingers, and stabilize, and implemented a function in main.go that periodically calls stabilize and fixFingers.