Finished main game loop and added exit command (check TODO for commands)