Check number of empty freecells and store parent states. Create JSON
replay log in the end.