Improved move generation which looks in all dimensions at once