The idea is good, but every time i die it takes to long to continue playing, maybe a "skip animation" button could improve the game
also, you are storing repeated points in time, which makes the cube look still for far too long. a solution to avoid this might be ignoring the positions if the velocity of the rigidbody is less than some number