FINALLY FIXED THE RESET THING

but if i make the array large enough so that you can play the game
multiple times, it crashes my computer (or displays an out of memory
error message)