Procedurized editDeck.php

Fixes issue #7