Almost working, printOneInLine not printing