I personally think the defining feature of reinforcement learning is the bellman equation, bellman equation with discount < 1 gaurantees that you will have a converging result.
You code does not show that you are using this methodology, therefore I don’t think it is reinforcement learning (personally).