improve timer functionality and reset game