a same game solver