Now checks if the dummy player is in range, if so it adds the dummy player to the inRange array
added some if statements to the state handlers so that the enemies can actually change state