The thing is really a mess and could likely do with a lot of abstractions and such... was mostly hacked together just to get it to work with no regards to whether or not it was readable.
Most important thing I think is to help segment it so it is easier to tell what each part is, as well as to perhaps add functions that reduce repetition.
The thing is really a mess and could likely do with a lot of abstractions and such... was mostly hacked together just to get it to work with no regards to whether or not it was readable.
Most important thing I think is to help segment it so it is easier to tell what each part is, as well as to perhaps add functions that reduce repetition.