Added state diagram, test code for red deck