some base game code