public void updateActual(){
        timer++;
        if(player==null)
            System.out.println("Player is null! :: Level1State");
        player.update(blocks,this);
        player.finalizeMovementNew(this);
        double dx=player.getDx();
        for(int i=0;i<blocks.size();i++){
            // This line will not be needed once tile physics works
            if(blocks.get(i)==null)
                continue;
            blocks.get(i).setXpos(blocks.get(i).getStartX()-xOffset);
            if(blocks.get(i).isOnScreen())
                blocks.get(i).updateC();
        }
        for(int i=0;i<enemies.size();i++){
            // Something will need to be added here
            enemies.get(i).setXpos(enemies.get(i).getXpos()-dx);
            if(enemies.get(i).isOnScreen())
                enemies.get(i).update(blocks);
        }
        player.checkCollisionsWithEnemies(enemies,this);
        // temporarily commented out for debugging
        if(xOffset>3176) // flagpole
            end();
        if(timer>=timerMax&&!GlobalController.gameRunning)
            end();
        resetBlocksOnScreen();
    }