determines whether or not the queen will attack a target based on their positions on a chess board