Praise the dog for being the goodest boy by throwing him his treats before the time runs out. 


//I got help with the "throwing" code from my amazing Professor, Dr. S, at Texas Tech University//