Turned pointer array to a normal array

This does not require any delete and has a proper data type.
Renamed the variable to be more useful.