Scanner nextline not waiting for input