changed initial lattice to have random orientation, like the cpu implementation