private ResponsePacket checkLetter(String l) {
        System.out.println("We recived letter "+l);
        ResponsePacket data = new ResponsePacket();
        boolean isCorrect = false;
        StringBuilder tmp = new StringBuilder(hiddenWord);
        for (int i = 0; i < this.selectedWord.length();++i) {
            if (this.selectedWord.charAt(i)==l.charAt(0)) {
                tmp.setCharAt(i, l.charAt(0));
                isCorrect = true;
            }
        }
        this.hiddenWord=tmp.toString();
        System.out.println("Server found letter="+isCorrect);
        System.out.println("Sending "+addSpaces(this.hiddenWord));
        if (isCorrect) {
            System.out.println("Number of intents "+this.intents);
            if (this.hiddenWord.contains("_"))
                data.setGameMode(addSpaces(this.hiddenWord), this.intents,this.totalScore);
            else 
                data.setCongratulation(this.selectedWord, (this.totalScore++));
        }
        else {
            this.intents--;
            if (this.intents<=0) 
                data.setGameOverMode();
            else 
                data.setGameMode(addSpaces(this.hiddenWord), this.intents,this.totalScore);
        }
        return data;
    }