refactored the projectile firing in the ingame scene of main.js to have some automated firing