Moved all drawing functions to core, as well as the screen buffer