using position in isKingInCheck
using position in Search