fixed return type removePiece