game model and tests