elect_leader_fail is working i think. should add the compilation to the makefile (forgot to add it to the commit whopps)