still haven't been able to fix the weird thing writing over the score. also deadlocks sometimes
fixed detecting when the last shot is fired using "save" global variable