added CardUtil class and moved methodes

also made tests kaputt :(