Tweak heartbeat times
Let master deal with failed race condition by declaring a winner.
Rename states, add dummy cases to silence compiler warning.
Fix some compiler warnings
Colors again.
Different heartbeat for master.