Use .next() instead of .nextLine();

I forgot specifically why, but .nextLine(); is a little flawed in a way that it sometimes forgets the input or overwrites it.