I don't know how to get all the endings, but to win the chess game you have to basically not take any risks and play it safe the whole time (at least that's what I did) :)