Moved game logic to engine.c