finish implementing card and deg

and hey, now it can build!