Removed unnecessary code. Controlls with game pad not tested.
Enemy checks if player is in range and if it is so attacks.