Change movetoyx(), putc() and getc() to methods of the screen.