Check if player does not set itself in check by moving a piece