Added timer and ending game