Method to find the queen closest to king in an attacking position
private static int dis ( int [ ] ans , int [ ] attacker ) { return Math . abs ( ans [ 0 ] - attacker [ 0 ] ) + Math . abs ( ans [ 1 ] - attacker [ 1 ] ) ; }