Begin cpu main loop implemenetation