Realized how "event handlers" work, fixed some locals
Tons of bugfixes. Basic functions work, now just needs testing and the quarry side of things