Added deleteDeck and fixed various errors