public void digit(int digit) {
	
		scores[turn-1] +=digit;
		
		boolean gameOver = false;
		
		//Handle winning
		if (scores[turn-1] == WINNING_SCORE) {
		
			//Tell everyone the game quit
			Iterator<ModelListener> iter = modelListeners.iterator();
			while (iter.hasNext()) {
				ModelListener listener = iter.next();
				listener.playerScore(turn, scores[turn-1]);
				listener.winner(turn);
				listener.playerTurn(0);

			}
			
			return;
			
		
			
		}
		
		int scoreBy = turn;
		
		available[digit-1] = false;
		
		availableAmount--;
		
		//Handle draw
		if (availableAmount == 0) {
			gameOver = true;
		}
		
		//Figure out new turn
		if (turn == PLAYER_ONE) {
			turn = PLAYER_TWO;
		}
		
		else {
			turn = PLAYER_ONE;
		}
		
		if (gameOver) {
			turn = 0;
		}
		
		//Tell everyone whos turn it is and whats available
		Iterator<ModelListener> iter = modelListeners.iterator();
		while (iter.hasNext()) {
			ModelListener listener = iter.next();
			listener.playerScore(scoreBy, scores[scoreBy-1]);
			listener.availableDigits(available);
			
			if (!gameOver) {
				listener.playerTurn(turn);
			}
			
			else {
				listener.playerTurn(0);
				listener.winner(0);
			}
		}
		
		
		
		
	
	
	}