public void exitState(){
		if (state == 0){ // determine deal
			state ++;
			muck();
			shuffle();
		}
		else if (state == 1){ // deal
			state ++;
		}
		else if (state == 2){ // discard and cut
			state ++;
			selections.clear();
			count = 0;
		}
		else if (state == 3){ // peg
			state ++;
			computerHand.getCards().addAll(computerPlayedCards);
			playerHand.getCards().addAll(playerPlayedCards);
			computerPlayedCards.clear();
			playerPlayedCards.clear();
			peggingStack.clear();
			count = 0;
			
		}
		else if (state== 4){ // count 1
			state ++;
		}
		else if (state== 5){ // count 2
			state ++;
		}
		else if (state== 6){ // count crib
			state  = 1;
			muck();
			shuffle();
			playerDeals = !playerDeals;
			stats.updateScores(playerScore, computerScore);
		}

		
		enterStateTime = System.currentTimeMillis();
	}