add new code for playing from time and fixed tests