CPU Main Loop