a game framework for ai class