move debug() to Screen class