public int getAlivePokemon() { int i = 0; for (EntityPokemon p : getTeam()) { if (p.getCurrentHP() > 0) { i++; } } return i; }