Added drawDeckTop and activeDeckTop plus some JS