public void waitInput(){
        while(!doInput){
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                //do nothing e.printStackTrace();
            }
        }
    }