pub fn get_piece_mobility<const PIECE: usize>(
    board: &Board,
    color: usize,
    dangered_king_squares: &mut u32
) -> i16
Expand description

Gets PIECE mobility (by counting all possible moves at the position specified by board) with color and increases dangered_king_squares if the enemy king is near to the squares included in the mobility.