Nevermind about the original post, I actually had an epiphany and came up with a simple method, although a bit of a cheating way, it'll serve the purpose.

If anyone can come up with an easy way to solve the 2nd issue (2nd post I made) that would be very much appreciated.