In the game of Lines and Boxes, players take turns joining two horizontally or vertically adjacent lines until a player completes the forth side of the square (a box). When all boxes have been coloured, the game ends and the player who has coloured more boxes wins.