added comments to queens logic