but my objective is that the 2 players can shoot
As far as I can see, the code seems correct; the player 0 should be shooting missile 0 every time you press the fire button.