Change the array NPObjects to arrayList so that the size is not fixed.
Add NP Objects to NPObjects when loading the map.