Efficient computer simulation of moving granular particles