// Update is called once per frame
    void Update()
    {
        if (!movementChecker.GetGridStatic() && Time.time > timeStamp + cooldown)
        {
            movementChecker.CheckGridForMovement();
            timeStamp = Time.time;
        }

        if (Time.time > powerTrackerTimestamp + powerTrackerCooldown)
        {
            powerTrackerTimestamp = Time.time;
            PowerStarTracker.Clear();
        }

//		if (!okayToMoveAgain && Time.time > okayToMoveTimeStamp + okayToMoveCooldown) {
//			//Debug.Log ("Okay To Move Again");
//			okayToMoveAgain = true;
//		}

        if (!stopFindingMatches && Time.time > assistanceTimeStamp + assistanceCooldown)
        {
            findMatchForPlayer  = true;
            assistanceTimeStamp = Time.time;
        }

        if (findMatchForPlayer)
        {
            matchAssistant.FindMatchForPlayer();
            findMatchForPlayer = false;
        }
    }
 // Update is called once per frame
 void Update()
 {
     if (checkForMatches.GetGameStarted() && startLaunchingStars && bombCount > 0 && Time.time > timeStamp + cooldown)
     {
         starLaunchCount++;
         soundHandler.PlayStarShot();
         if (starLaunchCount == 10 && bombCount >= 10)
         {
             starLaunchCount = 0;
             InstantiateRowDestructionStar();
             scoreKeeper.IncreaseScoreByRowDestructionStar(bombCount);
             bombRemainderController.DecreaseBombRemainderByTen();
             bombCount -= 10;
         }
         else if (starLaunchCount == 5 && bombCount >= 5)
         {
             InstantiateFallingBomb();
             scoreKeeper.IncreaseScoreByFallingBomb(bombCount);
             bombRemainderController.DecreaseBombRemainderByFive();
             bombCount -= 5;
         }
         else
         {
             InstantiateHomingStar();
             scoreKeeper.IncreaseScoreByBombNumberStar(bombCount);
             bombRemainderController.DecreaseBombRemainderByOne();
             bombCount--;
         }
         timeStamp = Time.time;
     }
     else if (startLaunchingStars && bombCount == 0 && Time.time > timeStamp + endOfLevelCooldown && stoppedMoving.GetGridStatic())
     {
         startLaunchingStars = false;
         deleteJewels.SetStopFindingMatches(true);
         instantiatedShade    = (GameObject)Instantiate(levelCompleteShade);
         darkenOnInstantiaton = instantiatedShade.GetComponent <DarkenOnInstantiaton> ();
         darkenOnInstantiaton.SetLevelComplete(true);
     }
 }