added timer to paintGrid