Added functionality to play game using history