I haven\'t been online on StackOverflow for a long time, so I\'ll try to do my best to describe... I\'m somewhat trying to create a weirdly specific and convoluted algorithm