Added the projectile function
need to update for cleaniness of code, and to allow for both the enemies and the player to use the same function when firing.