created printf, integrated with debugger

(also made some gamestate tweaks)