Queen attack solution