fix color in rat.py & os.chdir in controller.py