Symmetries of the heat equation on the lattice