@@ -0,0 +1,589 @@
+package jcrib;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic enum GameState %7B%0A    Cut(0),%0A    Crib(1),%0A    Play(2),%0A    Score(3);%0A%0A    private final int state;%0A%0A    private GameState(int state) %7B%0A        this.state = state;%0A    %7D%0A%0A    public int toInt() %7B%0A        return state;%0A    %7D%0A%0A    static Map%3CInteger, GameState%3E stateMap = new HashMap%3C%3E();%0A%0A    static %7B%0A        for (GameState t : GameState.values()) %7B%0A            stateMap.put(t.toInt(), t);%0A        %7D%0A    %7D%0A%0A    public static GameState fromInt(int i) %7B%0A        GameState s = stateMap.get(i);%0A        return s;%0A    %7D%0A%7D%0A

Create separate GameState enum