prelim game loop logic and command parsing+handling