crude, but working game management. will clean up main.py a lot