The aim of Fifteen logical game is to sort the figures in ascending order from left to right and from top to down accordingly. Figure " 1 " should be in the left top corner, and an empty square should be in the bottom right. Program counts the time from start to finish and stores the best result.