public void runOnce(Runnable task){
  temporaryTasks.add(task);
}

public void runOnce ( Runnable task ) { temporaryTasks . add ( task ) ; }
add a task that should be run once in the game loop thread .
