Finished the algorithm!! Fixed the Ricart interface event listeners