Changed the code a bit to use alphabets depending on the values