Fixed bug so newline is consumed on nextInt