First working version, read from stdin, noiseless moving and rotation