public int getScore(GameState state, Player player) {
		Preconditions.checkArgument(state.getPlayers().contains(player), 
				"The gamestate did not contain the player.");
		
		int score = 0;
		
		for(int x = 0; x < state.getCellCountX(); ++x)
			for(int y = 0; y < state.getCellCountY(); ++y)
				if(state.isCellCompleted(x, y))
					if(state.getCellOwner(x, y).equals(player))
						++score;
		
		return score;
	}