updated drawGrid