Card state implemented.

Simple solution.