public void freezeTime()
    {
        if (!data.won() && !data.lost())
        {
            if (game.isCurrentScreenState(GAME_SCREEN_STATE))
            {
                if (data.getBalance() >= COST_FREEZE_TIME)
                {
                    if (!data.isPaused())
                    {
                        data.pause();
                        pause(10000);
                        data.unpause();
                    } 
                }
            }
        }
    }