changed condition of addHull and addReactor to be based on array size