Square Master game solver