are these right sentences?

1)Shahrayar was all doing this to keep his heart safe.
2) In world literature, we came to know how every story ended by the power of the sword, but this story breaks the tradition and shows human‘s intelligence can also solve the problems.

1 answer

1. Shahrayar was doing all this . . .

2. It's correct, although I'd remove the 's from human. In this case human is used as an adjective modifying intelligence.