make play button work, update calculation of variables