control of the three robbers, to steal the treasure, beat the guard, to avoid being caught, and finally escape from the castle.