Fix line comparison
Enhance target squares for Q/R/K/N