The goal for each player is to form a connected path of own stones linking the opposing sides of the board marked by their colors.