Cleaned up deck.c