Slot machine doubt

Sir how to add functioning spin and stop button. When you click on the button it works. I am getting stuck at this part