Added internal handling of selected upgrade levels

Players can select which level of their purchased upgrade levels they
want to use.