#43 fix error handling when move invalid