add key and exit png files
update grid status
update qpainter