public void whiteTurn(int sx, int sy, int ex, int ey) {  
        int piece = board.getPiece(sx, sy);
        board.whiteTurn(sx, sy, ex, ey);  
        
        if (board.getMoveW()) {
            setInfo(0);            
            turns++;
            
            if (cm.canAttackKing(board.getBoard(), piece, ex, ey)) {
                setInfo(2);
                cm.addSquares();
                
                if (!cm.canKingMove() && !cm.canTakeDownAttacker(ex, ey)) {
                    setInfo(4);
                }            
            }            
        }  
        
        if (board.getBlack(4) == 99) {
            setInfo(4);
        }          
    }