added drawing into the grid with the mouse