Fix array bug and add star filling functionality