public void update() {                  
        if (chess.getTurn() % 2 == 0) {
            turns.setText("Black turn");
        } else {
            turns.setText("White turn");
        }
        
        if (chess.getInfo() == 0) {
            info.setText("");
        }
        
        if (chess.getInfo() == 1) {
            info.setText("White King under attack!");
        }
        
        if (chess.getInfo() == 2) {
            info.setText("Black King under attack!");
        }
        
        if (chess.getInfo() == 3) {
            info.setText("Black wins!");
            moves.setEnabled(false);
        }
        
        if (chess.getInfo() == 4) {
            info.setText("White wins!");
            moves.setEnabled(false);            
        }        
    }