add time util. fix game bug