all test cases work, problems with Ace resolved (Ace is represented by 1)