minimal code for game