Use libgdx's Array instead of ArrayList for fewer GC pauses.