Updated functions for NPC ships to move and fire projectiles