Added basic card resizing code

Not that it felt basic, took a *long* time :/