Refactor updateCards function, allow hits