Added autoR if > enemies.

Also cleaned the code.