Added passes to every empty if in main.py
Added framerate control to main.py