A plate-tectonics simulator