Wavepacket dynamics on a grid