@pesvoh This isn’t related to your problem, but you should format your code so it’s easier to read.
Here’s how: (Not mine, but it works)