card controller

started adding testing feature in cards
its very messy atm