Finished the draft of the entire mechanism. It still doesn't work, needs a lot of fixes