Game of the Giants is a two-player board game which is played on a 10x10 grid of cells. Each player has four giants having initial configuration as shown in starting stage.
A move consists of two subsequent actions:
1. One moves one of one's own giant one or more empty squares in a straight line (orthogonally), exactly as rook moves in chess, it may not cross or enter a square occupied by a giant or an arrow.
2. After moving, the giant shoots an arrow from its landing square to another...