added functions to advance game and tile frame counter for MM engine