private void setColorForPlayer(String line, int player){
        String input = line.substring(2, line.length());
        try {
            int colNo = Integer.parseInt(input);
            Color retCol = getColor(colNo);
            if (retCol != null) {
                if (player == 1){
                    controller.setColors(retCol, null);                    
                } else {
                    controller.setColors(null, retCol);                    
                }
            }
        } catch (NumberFormatException e) {
            log.warn("invalid input");
        }
    }