Added Play/Pause button , Slider to control speed & code refractoring