Changed my style of incrementing in the componentNumber hash map