implemented letterNumber2int, finished refactoring