The cannon enemy now shoots when the player is within a certain range