Implemented shuffling and back button.