Edited card_rank function, added Ace special case