Fixed a bug with using scanner.

All input should be handled with scanners. Else the scanln does not know
where to start reading