created timer and start/end game toggle