added drawGrid(), continuity and lifespan