When the three correct terminals are activated, the goat must go through the exit to win the game.