You move the chess to the positions according to the rules to get the red flag. To do that, you need to overcome obstacles that stand in your way. For example, you can move half the board left or right to overcome those obstacles. You also need to limit the number of moves not to lose.