The code for this is simple but not smart, it'd probs be faster if I used like vectors or something Anyway yeah cred to @NickyNouse if you use this for anything