Edit: logic.py