Rework the alpha entry code so that it is table based rather than a big pile of nested if statements.
Not only should this run fast and be smaller but it is much easier to change if ever required.