Changed array list from a static array

The array list did not need to be a static array and caused problems
with polymorphism in the program.