Quote:

I have turned on debug and no errors appear.


If indeed no errors appear (something I doubt) then the code itself is working as designed but not producing any results due to programming logic errors.
_________________________
There are two types of vessels, submarines and targets.