second highest card update and fixed bug