+ score + "/" + parseInt(levels[level - 1].numSheep * 0.8);
      }

      // Game loop
      function gameLoop() {
        if (!gameRunning) return;

        for (let i = 0; i < sheep.length; i++) {
          flock(i);
          checkObstacleCollision(sheep[i]);
        }
        moveWolves();

        if (checkWinCondition()) {
          //win
          if (level < levels.length) {
            showScreen(`Level ${level} Complete!`, false, true, true);
          } else {
            showScreen("You Win! Yo