r - start recording s - replay recording (will not work if you haven't recorded) code explanation when you press r, it repeats the max data amount, and the repeat will add the cat's x to the x data list, and the cat's y to the y data list, when you press s, it changes the x index and y index variable by 1, and the cat will go to x item (x index) of x data and item (y index) of y data