removed extra link and fixed bug when clicking last card in the deck