expect(function() { return p.move(33, 22); }).not.toThrow();
expect(function() { return p.move(undefined, 22); }).toThrow();
expect(function() { return p.move(222, undefined); }).toThrow();
expect(function() { return p.move(null, 33); }).toThrow();
expect(function() { return p.move(2, null); }).toThrow();