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.