In line #2000, I believe you want a$(aa,bb)="."
, otherwise you're just hammering the same location with the initialization.
Also, and probably more important to your question, every GOSUB
needs a RETURN
to get back to the main line of execution. In your case, that's probably line 2030.