use arraylist instead of gdx's implementation

also some refactoring for deleting matches