Working on the leader election
Added the leader election... Everything needs to be tested.