public void runGame() throws InterruptedException {
        Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://192.168.0.198:3306/spacegame_base", "chad", "Chad1992!");

        while(getGameTime() < finishTime) {
            if(tQueue.isEmpty()) {
                waiting = true;
                wait();
                waiting = false;
            }
            int waitTime = tQueue.getNextTime() - getGameTime();
            if(waitTime <= 0) {
                tQueue.nextTask();
            }
            else {
                Thread.sleep(waitTime);
            }
        }

        Base.close();
    }