Fix object duplication in board
Add InvalidMoveError exception